﻿using System;

namespace Sustainalytics.MostRecentActivity.Service
{
    public class MostRecentActivitytDto
    {
        public Guid Id { get; set; }
        public string CompanyName { get; set; }
        public string CompanyNameUrlFriendly { get; set; }
        public string Ticker { get; set; }

        public static MostRecentActivitytDto FromMostRecentActivity(Entities.MostRecentActivity mra)
        {
            var result = new MostRecentActivitytDto()
            {
                Id = mra.Id,
                CompanyName = mra.CompanyName,
                CompanyNameUrlFriendly = mra.CompanyNameUrlFriendly,
                Ticker = mra.CompanyTicker
            };

            return result;
        }
    }
}
